var cols = [[
    {type:'checkbox'}
    ,{field:'username',  title: '用户名',sort: true}
    ,{field:'name', title: '姓名', sort: true}
    ,{field:'mobile', title: '手机号码'}
    ,{field:'sex',  title: '性别',templet: function(d){
            return d.sex==0?'男':'女';
        }},
    {field:'status',  title: '状态',templet: function(d){
            return d.status==0?'禁用':'正常';
        }}
]]
layui.config({
    base: '/static/layui/'
}).extend({
    index: 'index'
}).use(['layer','table'], function () {
    var table = layui.table,$ = layui.$;
    var tableins = initTable(table, "userTable", "/sys/role/"+$('#roleId').val()+"/userPage", cols, true, 80);
});